import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'

import 'vant/lib/index.css';

import router from './router'

// import { createApp } from 'vue';
import { SwipeCell } from 'vant';

// const app = createApp();
// app

// import Vant from 'vant'// 这里

import { Tab, Tabs } from 'vant';

import './app.less'

// Vant 桌面端适配
import '@vant/touch-emulator'

import { Toast } from 'vant';

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app
  .use(router)
  .use(pinia)
  .use(Toast)
  .use(SwipeCell)
  .use(Tab)
  .use(Tabs)

app.mount('#app')
